package net.zdreamer.geracomium.ui.more;

import net.zdreamer.geracomium.ui.BaseActivity;
import net.zdreamer.geracomium.ui.HomeFragment;
import net.zdreamer.geracomium.ui.MainActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.Toast;

import com.example.geracomium.R;

public class ApplyJobActivity extends BaseActivity implements OnClickListener {
	private ImageView back, share;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
	}

	@Override
	protected int getContentView() {
		// TODO Auto-generated method stub
		return R.layout.activity_apply_job;
	}

	@Override
	protected void init() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void initViews() {
		// TODO Auto-generated method stub
		initTitle("申请职位", R.drawable.selector_title_back,
				R.drawable.seletor_commit, true, true);
	}

	@Override
	protected void initListener() {
		// TODO Auto-generated method stub
		findViewById(R.id.back).setOnClickListener(this);
		findViewById(R.id.share).setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.back:
			Intent back_apply = new Intent(ApplyJobActivity.this,
					JobProfileActivity.class);
			startActivity(back_apply);
			ApplyJobActivity.this.finish();
			break;
		case R.id.share:
			Intent commit = new Intent(ApplyJobActivity.this,
					MainActivity.class);
			startActivity(commit);
			Toast.makeText(ApplyJobActivity.this, "提交成功……", Toast.LENGTH_LONG)
					.show();
			ApplyJobActivity.this.finish();
			break;
		default:
			break;
		}
	}

}
